const path = require("path");
const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base');

const config = {
  mode: "production",
  entry: "./src/index.tsx",
  output: {
    path: path.join(__dirname, "dist"),
    filename: "bundle.js"
  },
  devtool: "source-map"
};

module.exports = merge(baseConfig, config);
